Optimal. Leaf size=248 \[ \frac {i b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right )^2}{2 e \sqrt {d-e x} \sqrt {d+e x}}-\frac {b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {e x}{d}\right )}\right )}{e \sqrt {d-e x} \sqrt {d+e x}}+\frac {d \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \left (a+b \log \left (c x^n\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}+\frac {i b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {Li}_2\left (e^{2 i \sin ^{-1}\left (\frac {e x}{d}\right )}\right )}{2 e \sqrt {d-e x} \sqrt {d+e x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 248, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.233, Rules used = {2365, 2363,
4721, 3798, 2221, 2317, 2438} \begin {gather*} \frac {i b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {PolyLog}\left (2,e^{2 i \text {ArcSin}\left (\frac {e x}{d}\right )}\right )}{2 e \sqrt {d-e x} \sqrt {d+e x}}+\frac {d \sqrt {1-\frac {e^2 x^2}{d^2}} \text {ArcSin}\left (\frac {e x}{d}\right ) \left (a+b \log \left (c x^n\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}+\frac {i b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {ArcSin}\left (\frac {e x}{d}\right )^2}{2 e \sqrt {d-e x} \sqrt {d+e x}}-\frac {b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {ArcSin}\left (\frac {e x}{d}\right ) \log \left (1-e^{2 i \text {ArcSin}\left (\frac {e x}{d}\right )}\right )}{e \sqrt {d-e x} \sqrt {d+e x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2317
Rule 2363
Rule 2365
Rule 2438
Rule 3798
Rule 4721
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c x^n\right )}{\sqrt {d-e x} \sqrt {d+e x}} \, dx &=\frac {\sqrt {1-\frac {e^2 x^2}{d^2}} \int \frac {a+b \log \left (c x^n\right )}{\sqrt {1-\frac {e^2 x^2}{d^2}}} \, dx}{\sqrt {d-e x} \sqrt {d+e x}}\\ &=\frac {d \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \left (a+b \log \left (c x^n\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (b d n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \int \frac {\sin ^{-1}\left (\frac {e x}{d}\right )}{x} \, dx}{e \sqrt {d-e x} \sqrt {d+e x}}\\ &=\frac {d \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \left (a+b \log \left (c x^n\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (b d n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int x \cot (x) \, dx,x,\sin ^{-1}\left (\frac {e x}{d}\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}\\ &=\frac {i b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right )^2}{2 e \sqrt {d-e x} \sqrt {d+e x}}+\frac {d \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \left (a+b \log \left (c x^n\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}+\frac {\left (2 i b d n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\sin ^{-1}\left (\frac {e x}{d}\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}\\ &=\frac {i b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right )^2}{2 e \sqrt {d-e x} \sqrt {d+e x}}-\frac {b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {e x}{d}\right )}\right )}{e \sqrt {d-e x} \sqrt {d+e x}}+\frac {d \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \left (a+b \log \left (c x^n\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}+\frac {\left (b d n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\sin ^{-1}\left (\frac {e x}{d}\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}\\ &=\frac {i b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right )^2}{2 e \sqrt {d-e x} \sqrt {d+e x}}-\frac {b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {e x}{d}\right )}\right )}{e \sqrt {d-e x} \sqrt {d+e x}}+\frac {d \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \left (a+b \log \left (c x^n\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}-\frac {\left (i b d n \sqrt {1-\frac {e^2 x^2}{d^2}}\right ) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 i \sin ^{-1}\left (\frac {e x}{d}\right )}\right )}{2 e \sqrt {d-e x} \sqrt {d+e x}}\\ &=\frac {i b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right )^2}{2 e \sqrt {d-e x} \sqrt {d+e x}}-\frac {b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {e x}{d}\right )}\right )}{e \sqrt {d-e x} \sqrt {d+e x}}+\frac {d \sqrt {1-\frac {e^2 x^2}{d^2}} \sin ^{-1}\left (\frac {e x}{d}\right ) \left (a+b \log \left (c x^n\right )\right )}{e \sqrt {d-e x} \sqrt {d+e x}}+\frac {i b d n \sqrt {1-\frac {e^2 x^2}{d^2}} \text {Li}_2\left (e^{2 i \sin ^{-1}\left (\frac {e x}{d}\right )}\right )}{2 e \sqrt {d-e x} \sqrt {d+e x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.35, size = 217, normalized size = 0.88 \begin {gather*} \frac {\tan ^{-1}\left (\frac {e x}{\sqrt {d-e x} \sqrt {d+e x}}\right ) \left (a-b n \log (x)+b \log \left (c x^n\right )\right )}{e}-\frac {b n \sqrt {1-\frac {e^2 x^2}{d^2}} \left (\sinh ^{-1}\left (\sqrt {-\frac {e^2}{d^2}} x\right )^2+2 \sinh ^{-1}\left (\sqrt {-\frac {e^2}{d^2}} x\right ) \log \left (1-e^{-2 \sinh ^{-1}\left (\sqrt {-\frac {e^2}{d^2}} x\right )}\right )-2 \log (x) \log \left (\sqrt {-\frac {e^2}{d^2}} x+\sqrt {1-\frac {e^2 x^2}{d^2}}\right )-\text {Li}_2\left (e^{-2 \sinh ^{-1}\left (\sqrt {-\frac {e^2}{d^2}} x\right )}\right )\right )}{2 \sqrt {-\frac {e^2}{d^2}} \sqrt {d-e x} \sqrt {d+e x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {a +b \ln \left (c \,x^{n}\right )}{\sqrt {-e x +d}\, \sqrt {e x +d}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \log {\left (c x^{n} \right )}}{\sqrt {d - e x} \sqrt {d + e x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {a+b\,\ln \left (c\,x^n\right )}{\sqrt {d+e\,x}\,\sqrt {d-e\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________